package com.myself.partitions;

import org.apache.kafka.clients.producer.Partitioner;
import org.apache.kafka.common.Cluster;

import java.util.Map;

/**
 * @author W.S.
 * @version v1.0.0
 * @description 自定义分区管理器
 * @date Created in 2019/4/23 15:33
 */
public class MyPatitions implements Partitioner{

    public int partition(String s, Object o, byte[] bytes, Object o1, byte[] bytes1, Cluster cluster) {
        return 0;
    }

    public void close() {

    }

    public void configure(Map<String, ?> map) {

    }
}
